$(document).ready(function () {
    var msg = document.getElementById("msg");
    var msgLayer = document.getElementById("msgLayer");

    msg.onclick = function () {
        if (msgLayer.style.display == "none") { //一定要注意是==
            msgLayer.style.display = "block";
        }
        else {
            msgLayer.style.display = "none";
        }
    }

    var pl = document.getElementById("pl");
    var pl_box = document.getElementById("pl_box");
    msg.onclick = function () {
        if (msgLayer.style.display == "none") { //一定要注意是==
            msgLayer.style.display = "block";
        }
        else {
            msgLayer.style.display = "none";
        }
    }
    pl.onclick = function(){
        if (pl_box.style.display == "none") { 
            pl_box.style.display = "block";
        }
        else {
            pl_box.style.display = "none";
        }
    }
    $("#good").click(function () {
        // $("#good").text()=$("#good").text()++;
        var m = $("#good").text();
        m++;
        $("#good").text(m);
    })
    $.ajax({
        type:'post',
        url:'',
        data:{},
        dataType:JSON,
        success: function(data){
            $("#content").html(data.text);
        },
        error:function(){
            console.log(err.statusText);
        }

    })
})
